#include "ActivateAbilityVisitor.h"


ActivateAbilityVisitor::ActivateAbilityVisitor(): found(false), activatableInterface(0)
{
}

ActivateAbilityVisitor::~ActivateAbilityVisitor()
{
}

void ActivateAbilityVisitor::Visit(ActivateAbility& ability)
{
	found = true;
	activatableInterface = ability.ActivatableInterface();
}

bool ActivateAbilityVisitor::FoundAbility() const
{
	return found;
}

Activatable* ActivateAbilityVisitor::ActivatableInterface() const
{
	return activatableInterface;
}

void ActivateAbilityVisitor::Clear()
{
	found = false;
	activatableInterface = 0;
}

